﻿using System;
using Loki.Model;

namespace Luna.Model.CRM
{
    public interface ICRMService
    {
        void Reset();

        IIndexedEnumerable<IContact, Guid> Contacts { get; }

        IIndexedEnumerable<ICategory, Guid> Categories { get; }

        IIndexedEnumerable<IAccount, Guid> Accounts { get; }

        void Save(IEditableAccount account);

        void Delete(IEditableAccount account);

        void Save(IEditableContact account);

        void Delete(IEditableContact account);

        void Save(IEditableCategory category);

        void Delete(IEditableCategory category);
    }
}